//
//  TankManager.m
//  TestGameEngine
//
//  Created by Louis CHU on 20/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "TankManager.h"
#import "Tank.h"
#import "Person.h"
static TankManager * sSharedTankManager;

@interface TankManager ()
- (void) _createWorld;
@end

@implementation TankManager

+ (TankManager *) sharedTankManager
{
    if (!sSharedTankManager) {
        sSharedTankManager = [TankManager new];
    }
    return sSharedTankManager;
}

- (id) init
{
    self = [super init];
    if(self)
    {
        [self _createWorld];
    }
    return self;
}

- (void) _createWorld
{
    for (int i = 0; i < 1;i ++) {
        [Tank create];
        [Person create];
    }
    
}


@end
